package com.xueyi.system.supplier.service.impl;

import com.xueyi.common.web.entity.service.impl.BaseServiceImpl;
import com.xueyi.system.supplier.domain.dto.BaseSupplierDto;
import com.xueyi.system.supplier.domain.query.BaseSupplierQuery;
import com.xueyi.system.supplier.manager.IBaseSupplierManager;
import com.xueyi.system.supplier.service.IBaseSupplierService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 供应商管理 服务层处理
 *
 * @author xueyi
 */
@Service
public class BaseSupplierServiceImpl extends BaseServiceImpl<BaseSupplierQuery, BaseSupplierDto, IBaseSupplierManager> implements IBaseSupplierService {

    /**
     * 查询供应商对象列表 | 数据权限 | 附加数据
     *
     * @param supplier 供应商对象
     * @return 供应商对象集合
     */
    @Override
    //@DataScope(userAlias = "createBy", mapperScope = {"BaseSupplierMapper"})
    public List<BaseSupplierDto> selectListScope(BaseSupplierQuery supplier) {
        return baseManager.selectListExtra(supplier);
    }

}